package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @Description TODO
 * @Author itheima
 * @Date 2023-07-30 11:37
 */
public interface ReportService {
    /**
     * 营业额统计接口
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO getturnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计接口
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getuserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getordersStatistics(LocalDate begin, LocalDate end);
    /**
     * 查询销量top10接口
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getReportTop10(LocalDate begin, LocalDate end);

    /**
     * 导出报表接口
     */


    void exportBusinessData(HttpServletResponse response);

    void export(HttpServletResponse response);
}
